package com.itheima.health.service;

import com.itheima.health.entity.PageResult;
import com.itheima.health.entity.QueryPageBean;
import com.itheima.health.pojo.Role;

import java.util.List;

public interface RoleService {

	List<Role> findAllRoles();

	PageResult findPage(QueryPageBean queryPageBean);

	void add(Role role, Integer[] menuIds, Integer[] permissionIds);

	Role findByid(Integer id);

	List<Integer> findMenuIdsByRoleId(Integer id);

	List<Integer> findPermissionIdsByRoleId(Integer id);

	void edit(Role role, Integer[] menuIds, Integer[] permissionIds);

	void delete(Integer id);
}
